{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Http 协议"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### HTTP 请求协议\n",
    "```\n",
    "POST /api/v1/auth/password/login?loginway=password HTTP/1.l  # 请求首行\\n\n",
    "content-type: application/json            # 请求格式\n",
    "user-agent: Chrome/104.0.0.0 Safa/537.36  # 请求浏览器、操作系统\n",
    "\n",
    "空行\n",
    "{username: \"yuan\", password: \"123\"}       # 请求体Json\n",
    "```\n",
    "username=yuan&password=123   # urlencode 或 x-www-form-urlencoded"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### HTTP 响应协议\n",
    "```\n",
    "HTTP/1.1 200 OK\n",
    "content-type:application/json\n",
    "date: Sun. 28 Aug 2025 13:43:25 GMT\n",
    "content-lenght:73\n",
    "空行\n",
    "{\"code\":0,\"mst\":\"\"}\n",
    "```"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".venv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.12.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
